{%extends "bootstrap/base.html"%}
{%block title %}Flask{% endblock %}
{%block navbar %}
<div class="navbar navbar-inverse" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle"
            data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">Flasky</a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li><a href="/">Home</a></li>
            </ul>
        </div>
    </div>
</div>

{% endblock %}
{% block content %}
<div class="container">
    <div class="page-header">
        {#   url_for() 生成动态地址时，将动态部分作为关键字参数传入。例如， url_for
        {#('user', name='john', _external=True,page=2) 的返回结果是 http://localhost:5000/user/john?page=2 #}
        <img src="{{ url_for('static', filename = '001.jpg') }}">
        <h1>Hello!</h1>
    </div>
</div>
{% endblock %}